<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Unions</title>
  <link rel="stylesheet" type="text/css" href="../../../../styles.css">
</head>
<body>
<h1>Unions</h1>
  <img alt="Union Palette" src="../../../images/datalib_union_palette.png" align="right">

  <p>Unions contains Branches to hold a list of Cases along with a
  Field to apply if any of the Case literals matches with switch
  specification.</p>

  <p>These Branches and Cases as placed in collapsable compartments
  are shown in the example below.</p><img alt="Union Example" src=
  "../../../images/datalib_union_example.png">

  <p>This example corresponds to the IDL:</p>
  <pre>
union U switch (char) {
case 'L':
    long long_mem;
case 'c':
case 'C':
    char char_mem;
default:
    string string_mem;
};
  </pre>

</body>
</html>